<extend  name="Public:base" />
<block name="title">首页</block> 
<block name="style">
	<style type="text/css"> 
	</style>
</block>
<block name="content"> 
	
	<ol class="breadcrumb">
	  <li><a href="__CONTROLLER__/classify">文章分类</a></li> 
	  <li class="active">{$title}</li>
	</ol>  
	<form action="__CONTROLLER__/save_classify" method="post" class="form-horizontal">
			<input type="hidden" name="classify_id" value="{$info.classify_id}" />
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">名称</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="classify_name" value="{$info.classify_name}" id="inputtext" placeholder="名称">
			    </div>
			</div>
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">状态</label>
			    <div class="col-sm-10">
			    	<label for="radio" class="radio"><input type="radio" id="radio" name="status" {$info['status']?'checked':''} value="1" id="" />开启</label>
			    	<label for="radio1" class="radio"><input type="radio"  id="radio1" name="status" {$info['status']?'':'checked'} value="0" id="" />禁用</label>
			    </div>
			</div>
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">描述</label>
			    <div class="col-sm-10">
			    	<textarea name="desc"  class="form-control" id="" cols="30" placeholder="描述" rows="4">{$info['desc'] }</textarea> 
			    </div>
			</div>
			<div class="form-group">
				<label for="inputtext" class="col-sm-2 control-label">上级分类</label>
			    <div class="col-sm-8">
			    	<select name="pid" id="" class="form-control">
			    		<foreach name="class" item="item">
			    			<option value="{$item.classify_id}">{$item.classify_name}</option>
			    		</foreach>
			    	</select>
			    </div>
			    <div class="col-sm-2"><a href="__CONTROLLER__/add_classify" class="btn btn-info">添加分类</a></div>
			</div> 
			<div class="form-group">
				<div class="col-sm-offset-2">
					<button class="btn btn-info">保存</button>
					<a href="javascript:history.back()" class="btn btn-default">上页</a>
				</div>
			</div>
		</form>
</block>
